package com.xiaoyu.lanling.feature.chat.viewholder

import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import com.xiaoyu.lanling.R
import com.xiaoyu.lanling.feature.chat.model.message.ChatMessageTimeItem

class ChatMessageTimeViewHolder : ChatMessageBaseViewHolder<ChatMessageTimeItem>() {

    private var mTime: TextView? = null

    override fun doCreateView(layoutInflater: LayoutInflater, parent: ViewGroup): View? {
        val view = layoutInflater.inflate(R.layout.item_chat_time, parent, false)
        mTime = view.findViewById(R.id.chat_message_time)
        return view
    }

    override fun showData(position: Int, itemData: ChatMessageTimeItem) {
        mTime?.text = itemData.time
    }
}